
#ifndef CURVESLIDERHANDLER_H
#define CURVESLIDERHANDLER_H

#include <BTextual>
#include <BHandler>
#include <BFixedRestraint>
#include <BSliderRestraint>
#include <BSplineCurve>

using namespace BWE;

class CurveSliderHandler : public BHandler
{
public:
	CurveSliderHandler();
	~CurveSliderHandler();

protected:
	virtual void attached(BViewer* viewer);
	virtual void detached(BViewer* viewer);

	virtual void paint(BPainter& painter);
	virtual void render(BRender& render);

	virtual void styleEvent(const BEvent& event);

protected:
	BHolder<BGroup>		_group;
	BHolder<BBody>		_nodeA;
	BHolder<BBody>		_nodeB;
	BHolder<BBody>		_nodeC;
	BFixedRestraint*	_fixedRestraint;
	BSplineCurve*		_splineCurve;
	BSliderRestraint*	_sliderRestraint;

};

#endif

